import common from "@/validator/common";

const scheduleId = [
  common.getRequiredRule('课程节次')
]

const newClassroomId = [
  common.getRequiredRule('新教室')
]

const newSectionId = [
  common.getRequiredRule('新课程节次')
]

const reason = [
  common.getRequiredRule('申请理由'),
  {
    type: 'string',
    min: 2,
    max: 255,
    message: '申请理由应在2 - 255个字符之间'
  }
]

export default {
  insertRules: {
    scheduleId,
    newClassroomId,
    newSectionId,
    reason
  },
  updateRules: {
    scheduleId,
    newClassroomId,
    newSectionId,
    reason
  }
}
